Fix size allocation for list mode combo box
authorKristian Rietveld <kris@gtk.org>
Fri, 17 Dec 2010 15:51:42 +0000 (16:51 +0100)
committerKristian Rietveld <kris@gtk.org>
Fri, 17 Dec 2010 15:53:46 +0000 (16:53 +0100)
gtk/gtkcombobox.c

index dc909fecfa5574d7803fa893f5e6f26dab726ae5..fcfe854f72ed3dad9380590736a2ddc280397244 100644 (file)
@@ -2681,8 +2681,8 @@ gtk_combo_box_size_allocate (GtkWidget     *widget,
         {
           child.x += border.left + border_width;
           child.y += border.top + border_width;
-          child.width -= (2 * border_width) - (border.left + border.right);
-          child.height -= (2 * border_width) - (border.top + border.bottom);
+          child.width -= (2 * border_width) + border.left + border.right;
+          child.height -= (2 * border_width) + border.top + border.bottom;
         }
 
       if (gtk_widget_get_visible (priv->popup_window))